package masag.robot.xbee;

import fr.dgac.ivy.*;


public class RobotMsgNotifier 
{

	Ivy bus;
	
	RobotMsgNotifier(String adresse){		
		bus=new Ivy("RobotMsgNotifier","",null);
		try
		{
			bus.start(adresse);
		}
		catch(IvyException e){
			System.out.println("Erreur "+e);
		}
		
	}
	
	void forwardDataFromSap(String dataFromSap){
		try {
			bus.sendMsg(dataFromSap);
		}catch (IvyException ie) {
			System.out.println("can't send my message on the bus");
		}	
	}
	

//	public static void main(String[] arg)
//	{
//		new RobotMsgNotifier(arg[0]);
//	}
}